package org.example.aidemo.service.impl;

import org.example.aidemo.mapper.UserMapper;
import org.example.aidemo.pojo.User;
import org.example.aidemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findByUsername(String username) {
        User userInfo =userMapper.findByUsername(username);
        return userInfo;
    }
}
